import {get} from "@/api/requests";

/**
 * 查询gitlab平台的所有注册用户
 * @param params
 * @returns {Promise<*>}
 */
export async function fetchDevices(params) {
    return get('mqtt/fetchDevice', params);
}

/**
 * 开启设备监听
 *
 * @param params
 * @returns {Promise<*>}
 */
export async function listenDevice(params) {
    return get('mqtt/listen', params);
}

/**
 * 获取设备端的上报数据并用图表展示
 *
 * @param params
 * @returns {Promise<*>}
 */
export async function loadDevice(params) {
    return get('mqtt/load', params);
}
